//
//  HMProfileTableViewController.swift
//  微博
//
//  Created by 程双岐 on 16/9/19.
//  Copyright © 2016年 heima. All rights reserved.
//

import UIKit

class HMProfileTableViewController: HMVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if !isVisitor {
            visitor?.updateAisitorView(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }else{
        addNavRieghtButton()
        }
        
    }
    
    
    
    private func addNavRieghtButton(){
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    func pushAction() -> Void {
        let testViewController = HMTestViewController()
        navigationController?.pushViewController(testViewController, animated: true)
        
    }


}
